import Taro from "@tarojs/taro"

export const switchTab = (option: Taro.switchTab.Option) => Taro.switchTab(option)
export const reLaunch = (option: Taro.reLaunch.Option) => Taro.reLaunch(option)
export const redirectTo = (option: Taro.redirectTo.Option) => Taro.redirectTo(option)
export const navigateTo = (option: Taro.navigateTo.Option) => Taro.navigateTo(option)
export const navigateBack = (option: Taro.navigateBack.Option) => Taro.navigateBack(option)
export const statusBarHeight = () => Taro.getSystemInfoSync().statusBarHeight
export const pxTransform = (px: number, designWidth: number = 750) => Taro.pxTransform(px, designWidth)
